import React from "react";
import style from "./index.module.scss";
const obj = {
    id:new Date().getTime().toString(),
    total:212,
    title:'哈哈',
    des:'20哈'
};
import axios from "../../http/axios";
const zf =async()=>{
    const res = await axios.get('/api/zf',{params:{obj}})
    console.log(res);
    if(res.data.code ==200){
        window.open(res.data.url)
    }
}
const Index = () => {
  return (
    <div className={style.container}>
      <div className={style.container1}>
        <h2>图文问诊</h2>
        <div className={style.feeitem}>
          <span>￥200.00</span>
        </div>
      </div>
      <div className={style.feeitem}>
        <span>平台服务费</span>
        <span>￥12.00</span>
      </div>
      <a href="#" className={style.servicelink}>
        好大夫在线付费服务说明
      </a>
      <div className={style.box}>
        <div >
          <span>合计：￥{obj.total}.00</span>
        </div>
        <button className={style.btn} onClick={()=>zf()}>支付宝支付</button>
      </div>
    </div>
  );
};

export default Index;
